<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="../common/include/include.jsp"%>
<link rel="stylesheet" href="../css/css1.css" type="text/css" />

<script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/Test1.js'></script>     
<script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script>     
<script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script>     

<script type="text/javascript">
	//登录
	function login() {
		//检验帐号密码必填
		var custID = document.getElementById("loginForm.cust_id").value;
		var custPwd = document.getElementById("loginForm.cust_pwd").value;
		if(custID == "") {
			alert("请输入帐号");
			return;
		}
		if(custPwd == "") {
			alert("请输入密码");
			return;
		}
		chgAction("loginAction", "login");
		document.forms[0].submit();
	}
	
	$(function() {   
	    $("#refresh").click(function() {   
	        var rom = new Date();   
	        $("#randomCode").attr("src", "getRandomNumber?timestamp="+rom);   
	    });   
	});
	
	
</script>
</head>
<body>

	<s:form action="loginAction" name="form1" namespace="/front">
		<s:hidden name="loginFlag" value="2"></s:hidden>
		<s:hidden name="failCount"></s:hidden>
		<s:hidden name="isShowImage"></s:hidden>
		<div class="hometop">
			<div class="homelogo">
				<img src="../images/puduhome_01.gif" width="186" height="72" />
			</div>
			<div class="hometopr">
				<div class="hometopr1" align="right">
					<ul>
						<li><a href="#">会员中心</a></li> |
						<li><a href="#">收藏本站</a>
						</li> |
						<li><a href="#">设为主页</a>
						</li> |
						<li><a href="#">帮助中心</a>
						</li>
					</ul>
				</div>
				<div class="hometopr2">您好！欢迎来到普度成长网</div>
				<div class="hometopr3"></div>
			</div>
			<div class="clear"></div>
		</div>
		<div style="margin: 0 auto; width: 1002px; padding-top: 60px;">
			<div class="land">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr height="">
						<td width="71" height="44"
							style="width: 71px; color: #000000; font-size: 14px;"><span
							style="visibility: hidden;">空</span>账户名：</td>
						<td width="217"><s:textfield name="loginForm.cust_id"
								id="loginForm.cust_id" cssClass="inputbox1"></s:textfield></td>
						<td width="62" style="font-size: 10px; color: #000000;"
							title="两周内自动登录"><s:checkbox name="autoLogin" id="autoLogin"></s:checkbox>记住我</td>
					</tr>
					<tr>
						<td height="44"
							style="width: 71px; color: #000000; font-size: 14px;">登录密码：</td>
						<td><s:password name="loginForm.cust_pwd"
								id="loginForm.cust_pwd" cssClass="inputbox1"></s:password></td>
						<td style="color: #000000; font-size: 10px;" class="font9"><span
							style="visibility: hidden;">空</span>忘记密码</td>
					</tr>
					<s:if test="isShowImage=='yes'">
						<tr>
							<td  height="44" align="right"
							style="width: 71px; color: #000000; font-size: 14px;">验证码：</td>
							<td colspan="2"><img src="getRandomNumber" width="90"
								height="25" alt="验证码图片" id="randomCode" /> <a href="#"
								id="refresh" style="font-size: 12px;">看不楚，换张图片</a>
							</td>
						</tr>
					</s:if>
					<s:if test="result=='subLoginFail'">
						<tr>
							<td></td>
							<td colspan="2"><span class="font7"> <font
									color="red">帐号密码错误，请重新输入</font> </span>
							</td>
						</tr>
					</s:if>
					<tr>
						<td>&nbsp;</td>
						<td height="44" valign="bottom"><input type="button"
							onclick="c()"
							/ style="background: url(../images/landed_03.gif) no-repeat; width: 94px; height: 32px; border: none;"><span
								class="font10"><span style="visibility: hidden;">空</span><a
									href="#">忘记账号/密码</a> </span>
						</td>
						<td>&nbsp;</td>
					</tr>
				</table>
			</div>
			<div class="greenline"></div>
			<div class="landph"></div>
			<div class="clear"></div>
		</div>

		<div class="information" style="margin-top: 90px;">
			<div style="width: 966px; margin: 0 auto;">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="63%">copright<span style="visibility: hidden;">中</span>
							2012All<span style="visibility: hidden;">中</span>
							版权所有：武汉普度教育科技有限公司</td>
						<td width="37%" class="information2"><ul>
								<li><a href="#">关于普度</a>
								</li>
								<li><a href="#">用户隐私</a>
								</li>
								<li><a href="#">信息反馈</a>
								</li>
								<li><a href="#">友情链接</a>
								</li>
								<li><a href="#">普度广告</a>
								</li>
								<li><a href="#">机构合作</a>
								</li>
							</ul>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</s:form>
</body>
</html>
